package com.cyclecoder.demo.listener;

import com.cyclecoder.demo.event.SnowEvent;

public class WeatherRuningListener {
    private WeatherEventMulticaster weatherEventMulticaster;
    public WeatherRuningListener(WeatherEventMulticaster weatherEventMulticaster){
        this.weatherEventMulticaster = weatherEventMulticaster;
    }
    public void snow(){
        weatherEventMulticaster.multicastEvent(new SnowEvent());
    }
}
